import request from '@/utils/request'

// 查询VIP信息列表
export function listUservip(query) {
  return request({
    url: '/language/uservip/list',
    method: 'get',
    params: query
  })
}

// 查询VIP信息详细
export function getUservip(userId) {
  return request({
    url: '/language/uservip/' + userId,
    method: 'get'
  })
}

// 新增VIP信息
export function addUservip(data) {
  return request({
    url: '/language/uservip',
    method: 'post',
    data: data
  })
}

// 修改VIP信息
export function updateUservip(data) {
  return request({
    url: '/language/uservip',
    method: 'put',
    data: data
  })
}

// 删除VIP信息
export function delUservip(userId) {
  return request({
    url: '/language/uservip/' + userId,
    method: 'delete'
  })
}
